#ifndef FTCOMBOBOX_H
#define FTCOMBOBOX_H

#include <QtGui>

class FTComboBox : public QWidget
{
    Q_OBJECT
public:
    explicit FTComboBox();

    void addItem( const QString& );
    void addItem( int, const QString& );

    void selectFirst();
    void selectLast();

    int selectedIndex() const;
    QString selectedItem() const;
    int selectedItemId() const;
    void clear();

    void paintEvent(QPaintEvent *);
    void mouseReleaseEvent(QMouseEvent *);

    QSize sizeHint() const;
    QSize minimumSizeHint() const;

signals:
    void selectedItem(QString);
    void selectedItem(int);
    void selectedIndex(int);

public slots:
    void selectItem(QString);
    void selectItem(int);

private:
    QHash<int, int> keys;
    QStringList items;
    int selected;
    QPixmap arrow;

};

#endif // FTCOMBOBOX_H
